//
//  TRSearchProductView.h
//  WeiMiLan
//
//  Created by anan on 14/12/10.
//  Copyright (c) 2014年 Mac. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TableViewWithBlock.h"
#import "TRsearchViewController.h"
#import "KYRecentSearchView.h"

#define k_FontSize         (arc4random() % 15) + 14

@class TRSearchEditView;
@protocol TRSearchEditViewDelegate<NSObject>

@optional
/**
 *  页面发生切换
 *
 *  @param viewPager
 *  @param select
 */
- (void)didselectedText:(TRSearchEditView *)searchEditView selectText:(NSString *)selectText;

@end;


@interface TRSearchEditView : UIView{
    BOOL isOpened;
}
@property(nonatomic,copy)NSString * searchString;
@property(strong,nonatomic)WeChatNavigationBar *weChatNavigationBar;
@property(strong,nonatomic)NSArray *directorys;
@property (strong, nonatomic) IBOutlet UITextField *seachWordTF;

@property(weak, nonatomic) id<TRSearchEditViewDelegate> delegate;

//@property (strong, nonatomic) IBOutlet TableViewWithBlock *tb;
//@property (strong, nonatomic) IBOutlet UITextField *inputTextField;
//@property (strong, nonatomic) IBOutlet UIButton *openButton;
@property (nonatomic) NSInteger selectIndex;

@property (strong, nonatomic)NSMutableArray *titlesArray;

//- (IBAction)changeOpenStatus:(id)sender;

@property (nonatomic,weak) UIViewController *viewController;

- (void)reload;

@end
